#ifndef PALETTE_H
#define PALETTE_H

#ifndef GENESIS_DATATYPES
#define GENESIS_DATATYPES
typedef unsigned char byte;
typedef unsigned short word;
#endif

#define palid_Sonic 3

void PalLoadFG(int id);
void PalLoadBG(int id);
void pcPalettes();
long palColor2RGB(word color);

struct ROMpalette
{
      byte *pal; //pointer to array of palette data
      byte length; //length of palette data
      byte lineload; //palette line to begin loading palette data (can continue into other lnes)
};

struct palette
{
       word color[16];
};
struct layerpalette
{
      palette line[4];
};

#endif
